const md5 = require('../../app/utils/md5');

exports.seed = function(knex, Promise) {
    const pwd = md5('123456');

    // Deletes ALL existing entries
    return knex('users').del()
    .then(() => {
        return Promise.all([
            knex('users').insert({
                id: 1,
                name: 'admin',
                pwd: pwd,
            })
        ]);
    });
};
